#include "udpServer.hpp"

#include <memory>



int main(int argc ,char* argv[])
{
    if(argc != 2)
    {
        std::cout << "输入服务器名+端口号" << std:: endl;
        exit(USAGE_ERR);
    }

    uint16_t port = stoi(argv[1]);

    unique_ptr<ns_server::UdpServer> usvr(new ns_server::UdpServer(port));

    usvr->start();



    return 0;
}